//
//  ECUIView_HomeListNoData.m
//  Edu_iOS2018
//
//  Created by yanyan on 2018/1/15.
//  Copyright © 2018年 yanyan. All rights reserved.
//

#import "ECUIView_HomeListNoData.h"
#import "UIView_Helper.h"
@implementation ECUIView_HomeListNoData
@synthesize imageView = _imageView;
@synthesize textLabel = _textLabel;
- (void)addSubviews{
    [super addSubviews];
    _imageView = [UIView_Helper yImageView];
    [self addSubview:_imageView];
    _textLabel = [UIView_Helper yLabel];
    _textLabel.textAlignment = NSTextAlignmentCenter;
    _textLabel.textColor = [UIColor colorWithHex:0x999999];
    _textLabel.font = [UIFont systemFontOfSize:16];
    [self addSubview:_textLabel];
    CGFloat padding = 10;
    [_imageView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.width.equalTo(@(133));
        make.height.equalTo(@(123));
        make.centerX.equalTo(self.mas_centerX);
        make.centerY.equalTo(self.mas_centerY).offset(-20);
    }];
    
    [_textLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self).offset(padding);
        make.right.equalTo(self).offset(-padding);
        make.top.equalTo(self.imageView.mas_bottom).offset(padding);
    }];
}
@end
